home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2001 May / SGI Freeware 2001 May - Disc 3.iso / dist / fw_openssl.idb / usr / freeware / catman / p_man / cat3 / SSL_library_init.Z / SSL_library_init
Text File  |  2001-01-10  |  3KB  |  133 lines

  1.  
  2.  
  3.  
  4.      SSSSSSSSLLLL____lllliiiibbbbrrrraaaarrrryyyy____iiiinnnniiiitttt((((3333))))    22224444////SSSSeeeepppp////2222000000000000    ((((0000....9999....6666))))       SSSSSSSSLLLL____lllliiiibbbbrrrraaaarrrryyyy____iiiinnnniiiitttt((((3333))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       SSL_library_init, OpenSSL_add_ssl_algorithms,
  10.       SSLeay_add_ssl_algorithms - initialize SSL library by
  11.       registering algorithms
  12.  
  13.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  14.        #include <openssl/ssl.h>
  15.  
  16.        int SSL_library_init(void);
  17.        #define OpenSSL_add_ssl_algorithms()       SSL_library_init()
  18.        #define SSLeay_add_ssl_algorithms()       SSL_library_init()
  19.  
  20.  
  21.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  22.       _S_S_L__l_i_b_r_a_r_y__i_n_i_t() registers the available ciphers and
  23.       digests.
  24.  
  25.       _O_p_e_n_S_S_L__a_d_d__s_s_l__a_l_g_o_r_i_t_h_m_s() and _S_S_L_e_a_y__a_d_d__s_s_l__a_l_g_o_r_i_t_h_m_s()
  26.       are synonyms for _S_S_L__l_i_b_r_a_r_y__i_n_i_t().
  27.  
  28.      NNNNOOOOTTTTEEEESSSS
  29.       _S_S_L__l_i_b_r_a_r_y__i_n_i_t() must be called before any other action
  30.       takes    place.
  31.  
  32.      WWWWAAAARRRRNNNNIIIINNNNGGGG
  33.       _S_S_L__l_i_b_r_a_r_y__i_n_i_t() only registers ciphers. Another important
  34.       initialization is the    seeding    of the PRNG (Pseudo Random
  35.       Number Generator), which has to be performed separately.
  36.  
  37.      EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  38.       A typical TLS/SSL application    will start with    the library
  39.       initialization, will provide readable    error messages and
  40.       will seed the    PRNG.
  41.  
  42.        SSL_load_error_strings();            /* readable    error messages */
  43.        SSL_library_init();                /* initialize library */
  44.        actions_to_seed_PRNG();
  45.  
  46.  
  47.      RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEESSSS
  48.       _S_S_L__l_i_b_r_a_r_y__i_n_i_t() always returns "1", so it is safe to
  49.       discard the return value.
  50.  
  51.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  52.       ssl(3), SSL_load_error_strings(3), RAND_add(3)
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 11/10/00)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      SSSSSSSSLLLL____lllliiiibbbbrrrraaaarrrryyyy____iiiinnnniiiitttt((((3333))))    22224444////SSSSeeeepppp////2222000000000000    ((((0000....9999....6666))))       SSSSSSSSLLLL____lllliiiibbbbrrrraaaarrrryyyy____iiiinnnniiiitttt((((3333))))
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.      Page 2                        (printed 11/10/00)
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.